import java.io.IOException;
import java.net.Socket;
import java.util.Date;

import org.json.JSONObject;

import subscriptionbasedbus.SubscriptionBasedBus;

import DatabaseManager.DatabaseManager;
import Server.Client;
import Server.ClientListener;
import Server.EventReceiver;
import SystemDataTypes.FlightPlan;
import SystemDataTypes.FlightState;

public class Main implements EventReceiver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		

		ClientListener  lis1 = null;
		
		try {
		lis1 = new ClientListener(632, new Main());
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		lis1.start();
		
		
	}

	@Override
	public void receiveMessage(String strMessage, Socket socket) {
		// TODO Auto-generated method stub
		System.out.println("recibi mensaje desde " + socket.getLocalPort());
		System.out.println(strMessage);
	}

}

